$('#diy_datepicker').html("<%= escape_javascript( render :layout => 'orders/date_pickers/show.html',
    :locals => {
       :on => @on,
       :filter => params[:filter] } do |date| %>
  <%= link_to orders_url(:on => date, :filter => params[:filter]),
        :remote => true,
        :title => Order.installed_on(date).count > 0 ? "上门安装的订单 * #{Order.installed_on(date).count}份" : nil do %>
    <div class="day">
      <%= date.day %>
    </div>
    <div class="status_i has_been_ordered_i">
      <%= Order.installed_on(date).count > 0 ?  Order.installed_on(date).count : '' %>
    </div>
  <% end %>
<% end ) %>");
$('#diy_datepicker').show(1000);